import { activeList } from '@/pages/common/constant.js';

const activeHandlerPlugin = {
  install(Vue) {
    Vue.mixin({
      methods: {
        activeHandler(activity) {
          return activeList.find(item => +item.value === +activity)?.name ?? '';
        }
      }
    });
  }
};

export default activeHandlerPlugin;
